home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d18 / kruse_11.arc / 11DOC.DOC < prev    next >
Text File  |  1990-11-30  |  6KB  |  141 lines

  1.  
  2. 11TEXT.EXT             54
  3.    Program segments from the textbook
  4.  
  5. 11SOL.EXT              37
  6.    Program segments from the solutions manual
  7.  
  8.  
  9.  
  10. Versions of the index-writer program:
  11.  
  12. INDEXTEXT.PAS          62
  13.    This is the basic version, directly from the textbook.  It will compile
  14.    under VAX/VMS Pascal, but it may not execute, since it sets up an array
  15.    of 26 local files, which may exceed the limit set by the operating system.
  16.  
  17. INDEXWRITE.PAS         71
  18.    This is a more flexible version of the index writer including the options of
  19.    categorizing text words as page reference and questionable, as well as count,
  20.    place in hash table, and index.  The program uses fewer temporary files and
  21.    hence will run under more operating systems. The program assumes the exist-
  22.    ence of a file HASHFILE.DAT in the default directory.  File NEWHASHFILE.DAT
  23.    stores all the new hash words encountered by the program. This program only
  24.    implements Phases I and II of the total index writer program desribed in the
  25.    textbook. Should a list of index or page references exceed a maximum record
  26.    length of 130, additional references will be placed on a separate line.  This
  27.    file format is compatible with all other utilities in this directory. 
  28.  
  29. INDEXTEX.PAS           74
  30.    This version (the one usually used) modifies the previous program in order to
  31.    skip over commands of the TeX typesetting system in the input file, that is
  32.    over all sequences beginning with a backslash (\) followed either by a single
  33.    nonalphabetic character or any sequence of letters from the alphabet (either
  34.    upper- or lowercase).  In addition, the program uses the appearance of a TeX
  35.    command of the form \*page, where * represents any single letter, to indicate
  36.    the end of one page.  The text of the book, for example, contains the TeX
  37.    command \epage at the end of each page. 
  38.  
  39. ADDHASH.PAS             7
  40.    This is the first part of Phase 3 of the total index writer program.  Files
  41.    HASHFILE.DAT and NEWHASHFILE.DAT are read and merged.  The new file is
  42.    written to a file as specified by the user. 
  43.  
  44. MERGEWORDS.PAS         18
  45.    This is the second part of Phase 3 of the total index writer program.  The
  46.    master word file and an index file are read in, merged, and written to a file
  47.    as specified by the user. 
  48.  
  49.  
  50.  
  51. Other utility programs related to the index writer:
  52.  
  53. MAKEHASH.PAS            9
  54.    Reads in a list (text file) of words (one per line) to be placed into a
  55.    hash file and writes the hashed file to a user specified file.
  56.  
  57. MERGEHASH.PAS           5
  58.    Combines the counts from two hash-table files, producing a new file
  59.  
  60. REMDUPL.PAS             4
  61.    This utility reads in a master word list and an index of words.  All words
  62.    in the second list which also appear in the first list are deleted, and the
  63.    shortened list is written out to a user-specified file. 
  64.  
  65. REMREF.PAS              3
  66.    This utility strips the given index file of all page references and word
  67.    counts.  It will also remove any lines of continued references that may
  68.    appear. 
  69.  
  70. SORTHASH.PAS           16
  71.    Sorts a hash-table file into order either alphabetically or by word
  72.    frequency, producing new file(s) specified by the user
  73.  
  74.  
  75.  
  76.  
  77. Data files used by the index writer:
  78.  
  79. ININDEX.DAT           306
  80.    Master word list to be used by the index writer, consisting of 6508 words,
  81.    all the distinct words (except those in the hash table) appearing in the
  82.    textbook, the instructor's manual, and the solutions manual, together with
  83.    a few others. 
  84.  
  85. HASHWORDS.DAT          50
  86.    This is a list of 1067 common words to be placed in the hash file by the
  87.    utility MAKEHASH.PAS.  It is sorted approximately so as to place the more
  88.    frequently used words into the table first so that they may be accessed in
  89.    less time. 
  90.  
  91. HASHFILE.DAT           44
  92.    Be sure that this is in the default directory while running the index writer
  93.    program.  The file is in hashed format.  This file, as supplied, is suitable
  94.    for a Vax computer under VMS and DEC Pascal.  With other systems, the hash
  95.    table should be generated by running the program MAKEHASH.PAS on the file
  96.    HASHWORDS.DAT.
  97.  
  98. INTEXT.DAT              6
  99.    This is a short, sample text file (extracted from the preface to the text)
  100.    that may be used to test the index-writer programs.
  101.  
  102.  
  103.  
  104.  
  105. Word lists generated by the index writer:
  106.  
  107. TEXT.ALH               59
  108. TEXT.FRH               59
  109. TEXT.WRD              365
  110. SOLUTIONS.ALH          59
  111. SOLUTIONS.FRH          59
  112. SOLUTIONS.WRD         204
  113. INSTRUCTOR.ALH         59
  114. INSTRUCTOR.FRH         59
  115. INSTRUCTOR.WRD        150
  116.    These files contain the lists of all words (concordances) for the textbook
  117.    (total of 201,399 words), for the instructor's manual (46,571 words), and for
  118.    the solutions manual (106,197 words), respectively.  The files *.ALH are the
  119.    words from the hash tables, sorted alphabetically; the files *.FRH are the
  120.    words from the hash tables sorted in decreasing frequency of appearance; and
  121.    the files *.WRD contain all remaining words (most with a complete list of
  122.    page references). 
  123.  
  124.  
  125.  
  126.  
  127. Solutions to programming projects:
  128.  
  129. INDEXFILES.PAS         70
  130.    Modification of the basic program to use fewer temporary files (solution
  131.    to Section 11.3, Exercise E6)
  132.  
  133. INDEXSORT.PAS          61
  134.    Modification that sorts lists of words before comparing with the master
  135.    word list (solution to Section 11.4, Exercise E3)
  136.  
  137. INDEXHASH.PAS          64
  138.    Modification to use a second hash table to amalgamate references before
  139.    comparison with the master word list (solution to Section 11.4, Exercise E4)
  140.  
  141.